/**
 * @program: 2022.2.28
 * @description:
 * @author: 李鑫月
 * @create: 2022-02-28 15:33
 **/
class MyArrayList<E> {
    private E[] arr;
    private int  usedsize;

    public MyArrayList() {
        arr = (E[]) new Object[10];
    }
    public void add(E x){
        arr[usedsize]=x;
        usedsize++;
    }
}
public class TestDemo2 {
}
